from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver = webdriver.Firefox()
driver.get('F:\\gitee\\python\\chapter\\myhtml5-1.html')

# locate type 之 直接传递
# driver.find_element('id', 'myid').send_keys('id')
# driver.find_element('name','myname').send_keys('name')
driver.find_element('xpath','//*[@id="myid"]').send_keys('name')
# driver.find_element('css','#myid"]').send_keys('css')


sleep(3)
driver.quit()

